package com.hqyj.entity.account;


import com.hqyj.entity.common.AbstractEntity;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.List;

@Entity
@Table(name = "account_user")
public class User extends AbstractEntity {
    private static final long serialVersionUID = 1L;
    @Column(unique = true)
    private String email;
    @Column(unique = true)
    private String userName;
    private String password;
    private String userImage;
    @Transient
    private boolean rememberMe;
    @Transient
    private List<Role> roles;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public boolean isRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
